Einhugur macOS Bridge plugin.

NSSavePanel.SetAllowedFileTypes Method

An array of types that specify the files types to which you can save or open.

SetAllowedFileTypes(
   extensions() as String)

Parameters

extensions()
The extensions to allow. (Do not include dot in the extensions)

Remarks

Only put the file endings in the array, excluding the dot.

For example:


var dlg as NSSavePanel = new NSSavePanel()

dlg.SetAllowedFileTypes(array("jpg"))

See Also

NSSavePanel Class